<template>
  <div>
    <!-- 日期选择器组件 -->
    <div class="dateSelectBox">
      <div class="titleBoxStyle">
        <slot name="titleName"></slot>
        <!-- 组件中使用方法：<span slot="titleName">开始日期:</span> -->
      </div>
      <div class="dateBoxStyle">
        <slot name="dateSelectBox"></slot>
        <!-- 组件中使用方法： <el-date-picker
        slot="dateSelectBox"
        v-model="timeValue"
        type="date"
        placeholder="请选择日期"
      >
      </el-date-picker> -->
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeValue: ""
    };
  }
};
</script>

<style lang='scss' scoped>
.dateSelectBox {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  .titleBoxStyle {
    flex: 1;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
  }
  .dateBoxStyle {
    flex: 1.9;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /deep/.el-input--small {
      .el-input__inner {
        width: 100%;
        height: 4.8rem;
        background-color: #0f0f1f;
        border: 0.1rem solid #888888;
        font-size: 1.8rem;
      }
    }
  }
}
</style>
<style>
.el-date-table td.today span {
  color: #eeeeee;
  font-weight: 700;
}
.el-date-table td.current:not(.disabled) span {
  color: #00ff99;
  background-color: #191931;
}
.el-date-table {
  font-size: 1.2rem;
  line-height: 4rem;
  box-sizing: border-box;
}
.el-date-picker {
  z-index: 3005;
  position: absolute;
  width: 36rem;
  height: auto;
  top: 54.6rem;
  left: 249.8rem;
  background: #0f0f1f;
}
.el-date-picker__header {
  height: 2.4rem;
  line-height: 2.4rem;
}
.el-date-picker__header-label {
  font-size: 1.6rem;
}
.el-picker-panel__icon-btn {
  font-size: 1.6rem;
}
.el-date-picker .el-picker-panel__content {
  width: 100%;
  height: auto;
  margin: 0;
}
.el-input__suffix {
  right:1.8rem;

}
/* 一键删除按钮 */
.el-input__suffix {
  color: #eeeeee;
  font-size: 1rem;
}
/* 日历图标 */
.el-input__icon {
  font-size: 1rem;
}
.el-select .el-input .el-select__caret {
  font-size: 1rem;
}
</style>